
import java.net.ProxySelector;
import java.net.ServerSocket;  
import java.net.Socket;  
import java.util.Properties;
/**
 *
 * @author janksenhu
 */
public class Server {
    /** 
     * @param args 
     */  
    public static void main(String[] args) throws Exception { 
//        System.setProperty("java.net.useSystemProxies", "false");
        ServerSocket serverSocket = new ServerSocket(8888);  
        while (true) {  
            Socket socket = null;  
            try {  
                socket = serverSocket.accept();  
                new SocketThread(socket).start();  
            } catch (Exception e) {  
                e.printStackTrace();  
            }  
        }  
    }  

}